<%= simple_form_for(@order) do |f| %>
<%= f.error_notification %>
<%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>






<div class="row">
	<div class="col-md-6">
		<%= f.input :order_code, label: '订单号' %>
	</div>
	<div class="col-md-6">
		<div class="form-group date optional order_order_date form-group-valid">
			<label class="form-control-label date optional" for="order_order_date_1i">订单日期</label>
			<div class="input-group">
				<input name="order[order_date]" class="form-control date-picker" id="order_order_date" type="text" data-date-format="yyyy-mm-dd">
				<span class="input-group-addon"> <i class="fa fa-calendar"></i> </span>
			</div>
		</div>
	</div>
</div>
<div class="row">
	<div class="col-md-6">
		<%= f.association :customer, label_method: :name, value_method: :id , label: '客户' %>
	</div>
	<div class="col-md-6">
		<%= f.input :customer_po, label: '客户ERP号' %>
	</div>
</div>

<div class="row">
	<div class="col-md-6">		
		<%= f.input :amount , label: '金额'%>
	</div>
	<div class="col-md-6">
		<!-- <%= f.input :due_date, label: '交期' %> -->
		<div class="form-group date optional order_due_date form-group-valid">
			<label class="form-control-label date optional" for="order_due_date">交期</label>
			<div class="input-group">
				<input name="order[due_date]" class="form-control date-picker" id="order_due_date" type="text" data-date-format="yyyy-mm-dd">
				<span class="input-group-addon"> <i class="fa fa-calendar"></i> </span>
			</div>
		</div>
	</div>
</div>

<div class="row">
	<div class="col-md-6">
		<%= f.input :contract_no , label: '合同号'%>
	</div>
	<div class="col-md-6">
		<%= f.input :tieta_settlement_no , label: '铁塔财务报账号'%>
	</div>
</div>

<%= f.input :comment, label: '备注' %>

<div class="horizontal-space"></div>
<div class="form-actions">
	<%= f.button :submit, '提交',class: "btn-primary" %>
</div>
<% end %>
